home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / PROGRAMMING / DESKLIBC / SOURCES.ZIP / DeskLib / !DLSources / Libraries / Serial / Static / Makefile < prev   
Makefile  |  1995-09-04  |  1KB  |  73 lines

  1.  
  2. ObjectFiles    =        \
  3.             o.NZPWOnRec    \
  4.             o.Activate    \
  5.             o.Deactivate    \
  6.             o.GetByte    \
  7.             o.GetFormat    \
  8.             o.GetRxRate    \
  9.             o.GetStatus    \
  10.             o.GetTxRate    \
  11.             o.PutByte    \
  12.             o.SendBreak    \
  13.             o.SetFormat    \
  14.             o.SetRxRate    \
  15.             o.SetStatus    \
  16.             o.SetTxRate    \
  17.  
  18.  
  19. LibName        =    Serial
  20.  
  21. # Template makefile which makes normal 
  22. # .o files for use in the main static
  23. # linking DeskLib.
  24.  
  25. # The macro $(ObjectFiles) should be set at the 
  26. # start of this file to be a space-separated
  27. # list of object files.
  28. # This is done by 'Makatic'.
  29.  
  30. # The macro $(LibName) should also be set at the 
  31. # start of this file, to be the name of the 
  32. # DeskLib sublibrary.
  33. # This is done by 'Makatic'.
  34.  
  35. # Compiler and linker flags, These can be anything. 
  36. # All essential flags are included in the macros 
  37. # $(CC) and $(ASM)
  38. #
  39. CCFlags        =    -ffahi $(CCExtra) -depend !Depend -throwback -D_DeskLib_$(LibName) -I,C:
  40. ASMFlags    =    -Stamp -NoCache -CloseExec -Quit $(ASMExtra)
  41.  
  42. CC        =    cc -c $(CCFlags)
  43. ASM        =    objasm $(ASMFlags)
  44.  
  45.  
  46. # -------------------------------------------------------
  47. # Everything below here should probably not be changed...
  48. # -------------------------------------------------------
  49.  
  50. # Here's what we want to make...
  51. #
  52. All:        $(ObjectFiles)
  53.  
  54.  
  55. VPATH = @.^
  56.  
  57. .SUFFIXES:    .c .s .o
  58.  
  59. .c.o:
  60.     $(CC) $< -o $@
  61.     
  62. .s.o:
  63.     $(ASM) -from $< -to $@
  64.  
  65.  
  66.  
  67. # Dynamic dependencies:
  68. o.NZPWOnRec:    ^.c.NZPWOnRec
  69. o.NZPWOnRec:    DeskLib:h.Core
  70. o.NZPWOnRec:    DeskLib:h.SWI
  71. o.NZPWOnRec:    DeskLib:h.Error
  72. o.NZPWOnRec:    DeskLib:h.Serial
  73.